<?php
if(!function_exists('_completeFilePath2url')){
function _completeFilePath2url($completeFilePath){
    $completeFilePath=preg_replace(  array("/\\\\+/","/\/+/"),array("/","/") ,$completeFilePath);
    $_DOCUMENT_ROOT=preg_replace(  array("/\\\\+/","/\/+/"),array("/","/"),$_SERVER['DOCUMENT_ROOT']).'/';
    return str_replace($_DOCUMENT_ROOT,_get_site_url(),$completeFilePath);
}}
?>